{% extends 'base/base1.html' %}

{% block title %}
    修改
{% endblock %}

{% block main %}
    <form method="post" action="" enctype="multipart/form-data">
        {% csrf_token %}
        {{ form.name.label_tag }}
        {{ form.name }}

        {{ form.img.label_tag }}
        {{ form.img }}

        {{ form.price.label_tag }}
        {{ form.price }}

        {{ form.cost_price.label_tag }}
        {{ form.cost_price }}

        {{ form.stock.label_tag }}
        {{ form.stock }}

        {{ form.category.label_tag }}
        {{ form.category }}

        <button type="submit" class="btn btn-primary">修改</button>
    </form>


{% endblock %}